package cn.edu.zut.hhr.controller;


import cn.edu.zut.hhr.entity.Tag;
import cn.edu.zut.hhr.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 文章的内容表,单独抽出来是因为很多情况下请求文章都不许带上内容 前端控制器
 * </p>
 *
 * @author HHR
 * @since 2021-08-24
 */
@RestController
@RequestMapping("/articleBody")
public class ArticleBodyController {
    @GetMapping("/test")
    public String test(@RequestParam User user, @RequestParam Tag tag){
        return "user="+user.toString()+"\ntag="+tag.toString();
    }
}
